package com.hafu.service;

import com.hafu.dao.GysinfoDao;
import com.hafu.model.Gysinfo;

import java.util.ArrayList;

public class GysinfoService {
    private GysinfoDao gysinfoDao = new GysinfoDao();
    public Boolean addGysInfo(Gysinfo gys)
    {
        return gysinfoDao.addGysInfo(gys);
    }
    public Boolean deleteGysInfo(int id)
    {
        return gysinfoDao.deleteGysInfo(id);
    }
    public ArrayList<Gysinfo> getGysInfoByName(Gysinfo gys)
    {
        return gysinfoDao.getGysInfoByName(gys);
    }
    public Boolean updateGysInfo(Gysinfo gys)
    {
        return gysinfoDao.updateGysInfo(gys);
    }
}
